package com.gnerv.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gnerv.cms.dto.TaskDTO;
import com.gnerv.cms.dto.TaskSearchDTO;
import com.gnerv.cms.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 基础平台-任务表 Mapper 接口
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Mapper
public interface TaskMapper extends BaseMapper<Task> {


    TaskDTO selectTask(@Param(value = "taskId") String taskId);

    List<TaskDTO> listTask(@Param(value = "search") TaskSearchDTO search);

    int updateTaskCount(@Param(value = "taskId") String taskId);

    boolean updateTaskStatus(@Param(value = "status") int status, @Param(value = "taskId") String taskId);
}
